package com.wangyanan.common;

import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 自定义拦截处理器
 *
 * @author 王亚楠
 * @date 2018年06月27日 10:22
 **/
public class MyInterceptorHandler implements HandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
            throws Exception {
        System.out.println("拦截请求路径:"+request.getRequestURL());
        return true;
    }

}
